<template>
    <div class="box">
        <h3>Child2组件 - 发送数据</h3>
        <button @click="btnClick">点击发送数据</button>
    </div>
</template>

<script>
export default {
    name: "Child2",
    methods: {
        btnClick() {
            this.$bus.$emit('receiveParams', '我爱你')
        }
    }
}
</script>

<style scoped>

</style>